// vue.config.js
module.exports = {
    devServer: {
        host: "localhost",
        port: 8080, // 端口号
        open: true, //配置自动启动浏览器
        proxy: {
            '/jianshu_api': {
                target: 'https://www.jianshu.com/',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/jianshu_api': ''
                }
            },
            '/baidu_api': {
                target: 'https://www.baidu.com/',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/baidu_api': ''
                }
            }
        }
    }
}